#include <iostream>
#include <cstring>

using namespace std;

// 求学生的平均分

class Student
{
public:
    Student(string name, int age, int score)
    {
        this->name = name;
        this->age = age;
        this->score = score;

        Student::scoreSum += score;
        Student::studentCount++;
    }

    void getAverage()
    {
        cout << "平均分：" << scoreSum / studentCount << endl;
    }

private:
    string name;
    int age;
    int score;
    static int scoreSum;
    static int studentCount;
};

int Student::scoreSum = 0;
int Student::studentCount = 0;

int main()
{
    Student s1("Tom", 18, 90);
    Student s2("Jerry", 19, 80);
    Student s3("Alice", 20, 70);

    s3.getAverage();

    return 0;
}